data = randi([0,1],2500,1);
fid = fopen('data.coe','w');
fprintf(fid,'MEMORY_INITIALIZATION_RADIX=10;\n');
fprintf(fid,'MEMORY_INITIALIZATION_VECTOR=\n');
for i = 1:1:2500
    fprintf(fid,'%d',data(i));
    if i==2500
        fprintf(fid,';');
    else
        fprintf(fid,',');
    end
     
    if mod(i,15)==0
        fprintf(fid,'\n');
    end
end
fclose(fid);